]> dgit.raspbian.org Git - gnome-shell.git/commit
slider: Don't preserve paths after filling
authorSebastian Keller <skeller@gnome.org>
Wed, 30 Jul 2025 13:24:29 +0000 (15:24 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 1 Aug 2025 14:29:46 +0000 (16:29 +0200)
commit1e5c4d79675cd57f64477be933db2d1a0b34dce7
treeb53bf456ee3431628b7d8c473d607a538720a8f2
parentf915596d355c132f0fff301d0873ee16adc10c98
slider: Don't preserve paths after filling

Prior to 6fd0aac86 the paths were preserved when filling to allow
stroking the path afterwards. The stroke() then would have cleared the
path. Then when the stroking was dropped in that commit, a second fill()
call, this time without preserving the path was added, but missed from
the end arc of the bar level. This then would leak the path to the
slider handle.

Fix this by always using fill() instead of fillPreserve().

Fixes: 6fd0aac86 ("slider: Remove border drawing code add hover style")
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3817>
(cherry picked from commit 95b407b57f6334cc1895d838c0b5fb7c42ff9c16)
js/ui/barLevel.js
js/ui/slider.js